#version 330 core

out vec4 FragColor;

const vec3 color_red = vec3(1.0,0.0,0.0);
const vec3 color_blue = vec3(0.0,0.0,1.0);

uniform float Time;

void main()
{
    vec3 color = vec3(0.0);
    float t = abs(sin(Time));
    color = mix(color_red, color_blue, t);
    FragColor = vec4(color, 1.0f);
}
